﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace sunt.AJAX.Demo.sunt.UpdataPanel
{
    public partial class sunt_ScriptManager : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ScriptManager sm = ScriptManager.GetCurrent(this.Page);
            ScriptManager.RegisterArrayDeclaration(this.Page, "myKey", "1,3,5");
            ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "ClientScriptBlock", "alert('Hello,sunt,rClientScript')", true);
            ScriptManager.RegisterHiddenField(this.Page,"author","sunt");
            ScriptManager.RegisterExpandoAttribute(this.Button1, this.Button1.ClientID, "owner", "阳光", true);
            ScriptManager.RegisterExpandoAttribute(this.Button1, this.Button1.ClientID, "owner3", "阳光", false);
            ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Startup", "alert('Hello sunt,Startup')", true);
        }
    }
}